import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//消耗管理 查询表单
export const consumptionqueryConsumptionList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/chemical/queryConsumeList`, {
    data
  });
};

//消耗管理 查询详情
export const consumptionqueryDetail = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/chemical/queryDetail`, {
    data
  });
};

//消耗管理 物料列表
export const consumptionqueryMaterialList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/queryMaterialList`, {
    data
  });
};

//消耗管理 系统列表
export const consumptionquerySystemList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/querySystemList`, {
    data
  });
};

//消耗管理 查询化学品耗量预测
export const chemicalqueryFuture = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/chemical/queryFuture`, {
    data
  });
};

//消耗管理 相关指标
export const consumptionqueryMeasureList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/queryMeasureList`, {
    data
  });
};

//消耗管理 热力图相关指标
export const consumptionqueryHeatMapList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/consumption/queryHeatMapList  `, {
    data
  });
};

//水量报表自来水 查询列表
export const balanceReportqueryListTW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryListTW`, {
    data
  });
};

//水量报表自来水 饼图
export const balanceReportqueryPieChartTW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryPieChartTW`, {
    data
  });
};

//水量报表自来水 趋势图
export const balanceReportqueryTrendChartTW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartTW`, {
    data
  });
};

//水量报表废水 查询列表
export const balanceReportqueryListWW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryListWW`, {
    data
  });
};

//水量报表废水 饼图
export const balanceReportqueryPieChartWW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryPieChartWW`, {
    data
  });
};

//水量报表废水 趋势图
export const balanceReportqueryTrendChartWW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartWW`, {
    data
  });
};

//水量报表纯水 查询列表
export const balanceReportqueryListUPW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryListUPW`, {
    data
  });
};

//水量报表纯水 饼图
export const balanceReportqueryPieChartUPW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryPieChartUPW`, {
    data
  });
};

//水量报表纯水柱状图
export const balanceReportqueryLoadRateUPW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryLoadRateUPW`, {
    data
  });
};

//水量报表纯水 趋势图
export const balanceReportqueryTrendChartUPW = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartUPW`, {
    data
  });
};

//水量异常指标 spc查询
export const balancequeryWaterBalanceSpc = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balance/queryWaterBalanceSpc`, {
    data
  });
};

//水平衡SPCJOB 查询
export const balancequeryWaterBalanceSPCJobList = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balance/queryWaterBalanceSPCJobList`, {
    data
  });
};

//用水趋势图预测线
export const balanceReportqueryTrendChartUPWFuture = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartUPWFuture`, {
    data
  });
};

//水平衡报表 自来水预测
export const balanceReportqueryTrendChartTWFuture = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartTWFuture`, {
    data
  });
};

//废水处理预测
export const balanceReportqueryTrendChartWWFuture = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/balanceReport/queryTrendChartWWFuture`, {
    data
  });
};

//查询耗材折线图
export const algorithmSpecialStackedLineConsumable = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/algorithmSpecial/StackedLineConsumable`, {
    data
  });
};

//查询耗材折线图
export const algorithmSpecialScatterPlotConsumable = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/algorithmSpecial/ScatterPlotConsumable`, {
    data
  });
};

//查询模拟分析折线图
export const algorithmSpecialSimulationAnalysis = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/algorithmSpecial/SimulationAnalysis`, {
    data
  });
};

//查询模拟分析id
export const algorithmSpecialSimulationAnalysisTaskId = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/algorithmSpecial/SimulationAnalysisTaskId`, {
    data
  });
};
